package com.acme.iolab.serialization.serializers;


import com.thoughtworks.xstream.XStream;

public class XmlSerializer implements Serializer {

    XStream xStream = new XStream();

    @Override
    public Object serialize(Object object) {
        return xStream.toXML(object);
    }

    @Override
    public Object deSerialize(Object object) {
        return xStream.fromXML((String) object);
    }
}
